from interface import db
from interface.common import to_json


class User(db.Model):
    __tablename__ = "User"
    id = db.Column(db.Integer, primary_key=True)
    name = db.Column(db.String(200))
    def __repr__(self):
        return '<User %r>' % self.id
    def to_json(self):
        return to_json(self)